package ooday03;


public class Duck extends Animal implements Swim,lay{
    Duck(){

    }

    Duck(String name,int age,String Color){
        super(name,age, Color);
    }
    void eat(){
        System.out.println(color + "色的" + age + "岁的" + name + "正在吃饲料");
    }
    public void swim(){
        System.out.println(color + "色的" + age + "岁的" + name + "正在游泳...............");
    }
    public void layEgg(){
        System.out.println(color+"色的"+age+"岁的"+name+"正在吃小米,正在下蛋");
    }

}
